//
//  AlaremListModel.m
//  efairy
//
//  Created by 李锋 on 2019/2/25.
//  Copyright © 2019年 East. All rights reserved.
//

#import "AlarmListModel.h"


@implementation AlarmNoDispostIdListModel
- (void)encodeWithCoder:(NSCoder *)aCoder { [self yy_modelEncodeWithCoder:aCoder]; }
- (instancetype)initWithCoder:(NSCoder *)aDecoder { self = [super init]; return [self yy_modelInitWithCoder:aDecoder]; }
@end


@implementation AlarmDispostListModel
- (void)encodeWithCoder:(NSCoder *)aCoder { [self yy_modelEncodeWithCoder:aCoder]; }
- (instancetype)initWithCoder:(NSCoder *)aDecoder { self = [super init]; return [self yy_modelInitWithCoder:aDecoder]; }
@end

@implementation AlarmNoDispostListModel
- (void)encodeWithCoder:(NSCoder *)aCoder { [self yy_modelEncodeWithCoder:aCoder]; }
- (instancetype)initWithCoder:(NSCoder *)aDecoder { self = [super init]; return [self yy_modelInitWithCoder:aDecoder]; }
@end

@implementation AlarmListModel
//必需实现“encodeWithCoder”和“initWithCoder”函数才能解析，如果有嵌套还需要实现“modelContainerPropertyGenericClass”函数
- (void)encodeWithCoder:(NSCoder *)aCoder { [self yy_modelEncodeWithCoder:aCoder]; }
- (instancetype)initWithCoder:(NSCoder *)aDecoder { self = [super init]; return [self yy_modelInitWithCoder:aDecoder]; }
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
    return @{@"alarm_msg_list"  : [AlarmNoDispostListModel class],
             @"alarmrecord_list"  : [AlarmDispostListModel class]
             };
}
@end
